<%@ page import="net.zjitc.domain.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/18
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
   response.addCookie(new Cookie("user","aaa"));
    response.addCookie(new Cookie("user1","bbb"));
    User u=new User();
    u.setId(12);
    u.setPhone("110");
    pageContext.setAttribute("user",u);
//    pageContext.setAttribute("user","Puser",pageContext.PAGE_SCOPE);
    session.setAttribute("user","suser");
    application.setAttribute("user","auser");
    pageContext.setAttribute("user","ruser",pageContext.REQUEST_SCOPE);
%>
${pageScope.user.phone}
<%--${pageScope.user}--%>
<hr>
${sessionScope.user}
<hr>
<!--全域查找，范围从小到大-->
${user}
<hr>
${pageContext.request.contextPath}
<hr>
${pageContext.request.requestURI}
<hr>
${pageContext.servletContext.serverInfo}
取客户端传过来的参数(1个)
${param.address}
<hr>
取客户端传过来的参数(多个)
${paramValues.love[0]}
<hr>
取请求头
${header.Host}
${header["User-Agent"]}
<hr>
取cookie <br>
${cookie.user.name}
<br>
${cookie.user1.value}
<br>
项目初始化配置<br>
${initParam.aaa}
<%--${cookie.JSESSIONID.name};--%>
<%--<br>--%>
<%--${cookie.JSEEIONID.value}--%>
</body>
</html>
